package com.slxy.annonation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service(value = "db")
@Data
public class DemoB {
    @Value("1")
    private Integer id;
    @Value("aa")
    private String name;
    @Value("cc")
    private String gender;
}
